package com.hansming.bss.modules.sfc.entity;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;

import com.hansming.bss.common.persistence.DataEntity;
import com.hansming.bss.modules.sys.entity.User;


/**
 * 房车信息Entity
 * @author Hansming
 * @version 2017-09-15
 */
public class CarInfo extends DataEntity<CarInfo>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private String 	title;					//房车标题	  
	private String 	brand;					//房车品牌	
	private String 	license;				//驾照许可
	private String	showurl;				//展示图片
    private String 	description;			//首页简介
    private String 	city;					//取车城市   
    private int 	passengers;				//载客数*		*小程序搜索条件
    private String 	oiltype;				//燃油类型 *
    private String 	transmission;			//手动挡还是自动*
    private String 	oilwear;				//油耗   
    private String 	drive;					//驱动*
    private String 	bedinfo;				//床位信息
    private int		sort;					//综合排序操作值
    private int 	bed;					//床位数*
    private int		in_menu;				//是否在首页城市推荐中
	private int		in_nav;					//是否在首页的导航栏中
    private CarExtr carextr;				//额外展示信息
    private String 	showflag; 				// 删除标记（1:展示    ;2，隐藏
    private String  service;
    private String 	details;				//详情页
    /**
     * 房车列表查询排列条件
     */
    
    private BigDecimal price;		//车的起始价格   
    private int score;				//评分   
    private int recommend;			//推荐 
    private int sellsnum;  			//销量
    private String info;
    private	String exinfo;
    /**
     * 到这为止的四个条件
     */
    
    
	private User user;
	
	
	
	public String getExinfo() {
		return exinfo;
	}

	public void setExinfo(String exinfo) {
		this.exinfo = exinfo;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public CarInfo() {
		super();
		this.in_menu = 0;
		this.in_nav = 0;

	}
	
	public CarInfo(String id){
		super(id);
	}

	public String getLicense() {
		return license;
	}



	public void setLicense(String license) {
		this.license = license;
	}



	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}


	@Length(min=0, max=255)
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=255)
	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}
	
	@Length(min=0, max=255)
	public String getShowurl() {
		return showurl;
	}

	public void setShowurl(String showurl) {
		this.showurl = showurl;
	}
	
	
	@Length(min=0, max=255)
	public int getBed() {
		return bed;
	}

	public void setBed(int bed) {
		this.bed = bed;
	}
	
	@Length(min=0, max=255)
	public String getCity() {
		return city;
	}

	

	public void setCity(String city) {
		this.city = city;
	}
	
	
	
	public int getPassengers() {
		return passengers;
	}

	public void setPassengers(int passengers) {
		this.passengers = passengers;
	}

	@Length(min=0, max=255)
	public String getOiltype() {
		return oiltype;
	}

	public void setOiltype(String oiltype) {
		this.oiltype = oiltype;
	}
	
	@Length(min=0, max=255)
	public String getTransmission() {
		return transmission;
	}

	public void setTransmission(String transmission) {
		this.transmission = transmission;
	}
	
	@Length(min=0, max=255)
	public String getOilwear() {
		return oilwear;
	}

	public void setOilwear(String oilwear) {
		this.oilwear = oilwear;
	}
	
	
	
	@Length(min=0, max=255)
	public String getDrive() {
		return drive;
	}

	public void setDrive(String drive) {
		this.drive = drive;
	}
	
	

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getRecommend() {
		return recommend;
	}

	public void setRecommend(int recommend) {
		this.recommend = recommend;
	}

	public int getSellsnum() {
		return sellsnum;
	}

	public void setSellsnum(int sellsnum) {
		this.sellsnum = sellsnum;
	}



	
	
	@Length(min=0, max=255)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@Length(min=0, max=255)
	public String getBedinfo() {
		return bedinfo;
	}

	public void setBedinfo(String bedinfo) {
		this.bedinfo = bedinfo;
	}

	
	
	public int getIn_menu() {
		return in_menu;
	}

	public void setIn_menu(int in_menu) {
		this.in_menu = in_menu;
	}

	public int getIn_nav() {
		return in_nav;
	}

	public void setIn_nav(int in_nav) {
		this.in_nav = in_nav;
	}



	public CarExtr getCarextr() {
		return carextr;
	}



	public void setCarextr(CarExtr carextr) {
		this.carextr = carextr;
	}



	public String getShowflag() {
		return showflag;
	}



	public void setShowflag(String showflag) {
		this.showflag = showflag;
	}

	
	
	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}



	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
	}



	public	static final String default_show = "1";
	public 	static final String default_hide = "0";



	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}
	
	
	
}
